<h1>Import a new Fragment</h1>
<p>This page allows the user to upload a CSV (comma separated value) file for a particular fragment.  Ensure that the first line of the file specifies the column names.</p>

<% form_for @fragment, :url => { :action => "create" }, :html =>{:multipart => true} do |f| %>
  <%= f.error_messages %>

  <%= render :partial => 'form', :locals => { :f => f } %>

  <p>
    Upload file:<br/>
    <%= f.file_field 'file' %>
  </p>
  
  <p>
    <%= f.submit "Save" %>
  </p>
<% end %>

<%= link_to 'Back', fragments_path %>
